package com.edu.backend.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.edu.backend.entity.Admin;
import com.edu.backend.entity.PagerInfo;
import com.edu.backend.entity.User;

import java.util.List;

/**
 * @Author: yanjunfeng
 * @Description: TODO
 * @Date: Created in 下午1:56 2023/6/20
 * @Modified By:
 */
public interface UserService extends IService<User> {

    public PagerInfo<User> getStudentList(PagerInfo<User> page, User user);
    public PagerInfo<User> getTeacherList(PagerInfo<User> page, User user);
    public Boolean deleteStudent(String id);
    public Boolean deleteTeacher(String id);

    public Boolean deleteBatch(List<String> ids);

    public Boolean addStudent(User user);
    public Boolean addTeacher(User user);

    public Boolean updateStudent(User user);

    public User getStudent(Integer id);
}
